package org.zfes.snowier.cloud.zbss.cms.words.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsWordsSearch extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsWordsSearch() {}
	public CmsWordsSearch(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
 
	@javax.validation.constraints.NotNull(message="搜索词汇不能为空")
	@javax.validation.constraints.NotBlank(message="搜索词汇不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="搜索词汇长度不能大于50")
	  private java.lang.String words;
 
	@javax.validation.constraints.NotNull(message="搜索次数不能为空")
	  private java.lang.Integer searchCount;
 
	@javax.validation.constraints.NotNull(message="优先级不能为空")
	  private java.lang.Integer priority;
 
	@javax.validation.constraints.NotNull(message="拼音首字母不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=500,message="拼音首字母长度不能大于500")
	  private java.lang.String nameInitial;
 
	@javax.validation.constraints.NotNull(message="推荐_D:#1推荐0不推荐#不能为空")
	  private java.lang.Byte isRecommend;
 
	@javax.validation.constraints.NotNull(message="站点不能为空")
	  private java.lang.Long siteId;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	
	//<-------------------------------------------->
	public CmsWordsSearch setWords(java.lang.String words){
		this.words=words==null?null:words.trim();
	 return this;
	}
	public java.lang.String getWords(){
		return this.words;
	}
	public CmsWordsSearch setSearchCount(java.lang.Integer searchCount){
	 this.searchCount=searchCount;
	 return this;
	}
	public java.lang.Integer getSearchCount(){
		return this.searchCount;
	}
	public CmsWordsSearch setPriority(java.lang.Integer priority){
	 this.priority=priority;
	 return this;
	}
	public java.lang.Integer getPriority(){
		return this.priority;
	}
	public CmsWordsSearch setNameInitial(java.lang.String nameInitial){
		this.nameInitial=nameInitial==null?null:nameInitial.trim();
	 return this;
	}
	public java.lang.String getNameInitial(){
		return this.nameInitial;
	}
	public CmsWordsSearch setIsRecommend(java.lang.Byte isRecommend){
	 this.isRecommend=isRecommend;
	 return this;
	}
	public java.lang.Byte getIsRecommend(){
		return this.isRecommend;
	}
	public CmsWordsSearch setSiteId(java.lang.Long siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Long getSiteId(){
		return this.siteId;
	}
	public CmsWordsSearch setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsWordsSearch setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsWordsSearch setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}

}
